package cn.edu.sgu.www.mhxysy.service.xingyin.impl;

import cn.edu.sgu.www.mhxysy.entity.xingyin.XingyinTexiaoType;
import cn.edu.sgu.www.mhxysy.mapper.xingyin.XingyinTexiaoTypeMapper;
import cn.edu.sgu.www.mhxysy.service.xingyin.XingyinTexiaoTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Service
public class XingyinTexiaoTypeServiceImpl implements XingyinTexiaoTypeService {

    private final XingyinTexiaoTypeMapper xingyinTexiaoTypeMapper;

    @Autowired
    public XingyinTexiaoTypeServiceImpl(XingyinTexiaoTypeMapper xingyinTexiaoTypeMapper) {
        this.xingyinTexiaoTypeMapper = xingyinTexiaoTypeMapper;
    }

    @Override
    public List<XingyinTexiaoType> selectAll() {
        return xingyinTexiaoTypeMapper.selectList(null);
    }

    @Override
    public XingyinTexiaoType selectById(Integer id) {
        return xingyinTexiaoTypeMapper.selectById(id);
    }

}